<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%
    String requestid = Util.null2String( request.getParameter( "requestid" ) );//requestid
    boolean flag;
    JSONObject jsonData = new JSONObject();
    String sql = "select btnType from  formtable_main_677 where requestid =?";
    rs.executeQuery( sql, requestid );
    if (rs.next()) {
        String btnType = Util.null2String( rs.getString( "btnType" ) );
        if("1".equals( btnType )){
            flag = true;
        }else {
            flag = false;
        }
    } else {
        flag = false;
    }
    jsonData.put( "flag", flag );
    out.print( jsonData.toJSONString() );
    bb.writeLog( "getBtnTypeStatus_Ajax=" + jsonData.toJSONString() );
%>


